﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Small.Html.Options
{
   public class JqEditOptions:JqBase
    {


       List<String> list = new List<string>();
          
          
         
         
          
         
       
        private string value;

        public string Value
        {
            get { return this.value; }
            set { this.value = value;
             list.Add(IsStringNull("value", value));
            }
        }
        private string dataUrl;

        public string DataUrl
        {
            get { return dataUrl; }
            set { dataUrl = value;
             list.Add(IsStringNull("dataUrl", dataUrl));;
            }
        }
        private string defaultValue;

        public string DefaultValue
        {
            get { return defaultValue; }
            set { defaultValue = value;
             list.Add(IsStringNull("defaultValue", defaultValue));
            }
        }
        private string dataEvents;

        public string DataEvents
        {
            get { return dataEvents; }
            set { dataEvents = value;
             list.Add(IsStringNull("dataEvents", dataEvents));
            }
        }
        private bool nullIfEmpty;

        public bool NullIfEmpty
        {
            get { return nullIfEmpty; }
            set { nullIfEmpty = value;
            list.Add(IsBool("NullIfEmpty", NullIfEmpty));
            }
        }

        private int rows;

        public int Rows
        {
            get { return rows; }
            set { rows = value; 
            list.Add(IsInteger("rows", rows));
            }
        }
        private int cols;

        public int Cols
        {
            get { return cols; }
            set { cols = value;
              list.Add(IsInteger("cols", cols));
            }
        }
        private int maxlength;

        public int Maxlength
        {
            get { return maxlength; }
            set { maxlength = value;
            list.Add(IsInteger("maxlength", maxlength));
            }
        }
        private Int32 size;

        public Int32 Size
        {
            get { return size; }
            set { size = value;
            list.Add(IsInteger("size", size));
            }
        }
        private int minlength;

        public int Minlength
        {
            get { return minlength; }
            set { minlength = value; 
              list.Add(IsInteger("minlength", minlength));
            }
        }
        private string src;

        public string Src
        {
            get { return src; }
            set { src = value;
             list.Add(IsStringNull("src", src));
            }
        }



       public override string GenerateString()
       {
           
          return " editoptions:{" + string.Join(",", list.ToArray()) + OthertAtributes + " } ";
           
       }


       private string fnCustom_element;
       private string fnCustom_value;
       private string onBuildSelect;
       private string onDataInit;

       
    }
}
